<template>
  <div>
    <el-container>
      <el-main>
        <el-container class="parent-body">
          <el-header class="content-header">
            <div>订单跟踪</div>
            <div>
              <el-button icon="el-icon-arrow-left" @click.native="returnButton">返回</el-button>
            </div>
          </el-header>
          <el-main class="info-main padding-style">
            <div class="start-info">
              <el-steps direction="vertical" :active="currentStart">
                <!-- <el-step v-for="orderStart in orderStarts" :title="orderStart.title" :description="orderStart.description"></el-step> -->
              </el-steps>
            </div>
          </el-main>
        </el-container>
      </el-main>
    </el-container>
  </div>
</template>

<script>
    export default {
        data() {
            return {
                currentStart:"1",
                orderStarts:[
                    {
                        title:"订单已签收，期待再次为您服务",
                        description:"2018-04-01 12:00:00  "
                    },{
                        title:"到达目的地网点上海市浦东区，快件将很快进行派送",
                        description:"2018-04-01 12:00:00  "
                    },{
                        title:"在上海浦东公司进行发出扫描",
                        description:"2018-04-01 12:00:00  "
                    },{
                        title:"在分拨中心上海浦东公司进行卸车扫描",
                        description:"2018-04-01 12:00:00  "
                    },{
                        title:" 在东方之珠公司地点扫描",
                        description:"2018-04-01 12:00:00  "
                    },{
                        title:"订单付款成功",
                        description:"2018-04-01 12:00:00  "
                    },{
                        title:"订单已提交，等待付款",
                        description:"2018-04-01 12:00:00  "
                    },
                ]
            }
        },
        methods:{
            returnButton(){
                this.$router.replace({ path: "/order/orderList" });
            }
        }
    }
</script>
<style scoped>
  .parent-body{
    border:1px solid #E4E4E4;
  }
  .content-header{
    height:50px;
    line-height: 50px;
    background-color:#F3F3F3;
    color:#666666;
    position: relative;
    text-align: left;
  }
  .info-main{
    background-color:#fff;
  }

  .content-header>div{
    display: inline-block;
  }
  .content-header>div:last-of-type{
    position: absolute;
    right:10px;
  }
  .padding-style{
    padding:0 !important;
  }
  .start-info{
    height:500px;
    margin:50px 100px;
  }

</style>
